home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Info / TeachU14 / SAMS / Code / Day13 / smtptstu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-08  |  1.5 KB  |  46 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef SMTPTstUH
  3. #define SMTPTstUH
  4. //---------------------------------------------------------------------------
  5. #include <vcl\Classes.hpp>
  6. #include <vcl\Controls.hpp>
  7. #include <vcl\StdCtrls.hpp>
  8. #include <vcl\Forms.hpp>
  9. #include <vcl\NMsmtp.hpp>
  10. #include <vcl\Psock.hpp>
  11. #include <ComCtrls.hpp>
  12. //---------------------------------------------------------------------------
  13. class TMainForm : public TForm
  14. {
  15. __published:    // IDE-managed Components
  16.     TNMSMTP *SMTP;
  17.         TButton *ConnectBtn;
  18.         TButton *DisconnectBtn;
  19.         TButton *SendBtn;
  20.         TLabel *Label1;
  21.         TEdit *ToEdit;
  22.         TLabel *Label2;
  23.         TEdit *FromEdit;
  24.         TLabel *Label3;
  25.         TEdit *SubjectEdit;
  26.         TLabel *Label4;
  27.         TMemo *Message;
  28.         TStatusBar *StatusBar;
  29.     void __fastcall ConnectBtnClick(TObject *Sender);
  30.     void __fastcall SMTPSuccess(TObject *Sender);
  31.     void __fastcall SMTPFailure(TObject *Sender);
  32.     void __fastcall SendBtnClick(TObject *Sender);
  33.     void __fastcall DisconnectBtnClick(TObject *Sender);
  34.     
  35.     
  36.         void __fastcall SMTPConnect(TObject *Sender);
  37.         void __fastcall SMTPDisconnect(TObject *Sender);
  38. private:    // User declarations
  39. public:        // User declarations
  40.     __fastcall TMainForm(TComponent* Owner);
  41. };
  42. //---------------------------------------------------------------------------
  43. extern PACKAGE TMainForm *MainForm;
  44. //---------------------------------------------------------------------------
  45. #endif
  46.